﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KaiXin.DTO.Tycoon;

namespace KaiXin.BLL.Interface
{
    /// <summary>
    /// 物品价格浮动委托
    /// </summary>
    /// <param name="goods"></param>
    public delegate void PriceChange(Goods goods);
    /// <summary>
    /// 开心大亨接口
    /// </summary>
    public interface IKXTycoon
    {
        /// <summary>
        /// 返回符合类型的所有物品
        /// </summary>
        /// <returns></returns>
        List<Goods> GetGoods(Func<GoodsClass,bool> func);
        /// <summary>
        /// 返回所有物品
        /// </summary>
        /// <returns></returns>
        List<Goods> GetGoods();
        /// <summary>
        /// 返回符合条件的前10个物品
        /// </summary>
        /// <param name="func"></param>
        /// <returns></returns>
        List<Goods> GetTOP10(Func<Goods, bool> func);
        /// <summary>
        /// 物品价格浮动事件
        /// </summary>
        event PriceChange PriceChangeEvent;
    }
    
    
}
